/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved.
 */
package com.icinfo.cloud.provider.punish.service;

import com.icinfo.cloud.provider.common.service.PunishBaseService;
import com.icinfo.cloud.provider.punish.dto.AppDocumentTemporaryRecordSaveDto;
import com.icinfo.cloud.provider.punish.dto.ZtcCurrentUserTemporaryInfoDto;
import com.icinfo.cloud.provider.punish.enums.ZtcSourceTypeEnum;
import com.icinfo.cloud.provider.punish.vo.AppDocumentCurrentUserTemporaryVo;

/**
 * 直通车文书暂存服务层
 *
 * @author Junfeng.Chen
 * @date 2024/1/10 11:22
 **/
public interface IAppCaseBeforeDocumentTemporaryRecordService extends PunishBaseService {

    /**
     * 暂存直通车文书
     *
     * @param dto
     */
    void save(AppDocumentTemporaryRecordSaveDto dto);

    /**
     * 获取当前用户暂存信息
     *
     * @return
     */
    AppDocumentCurrentUserTemporaryVo getCurrentUserTemporaryInfo(ZtcCurrentUserTemporaryInfoDto dto);

    /**
     * 清空当前用户暂存信息
     *
     * @param documentCatalogCode 文书类目code
     * @param sourceType 来源类型
     * @param sourceId 来源id
     */
    void removeCurrentUserTemporaryRecord(String documentCatalogCode, ZtcSourceTypeEnum sourceType, String sourceId);
}

